package cc.comac.mom.service;


import org.slf4j.event.Level;

public interface MomLogger {
	/**
	 * 存表mom_log
	 * @param message
	 */
	public void cacheLog(String message);
	/**
	 * 
	 * @param tableName 自定义，如果以_log结尾系统不做改动，如果不是系统默认在表名后加_log
	 * @param message
	 */
	public void cacheLog(String tableName,String message);
	
	public void cacheLog(Level level, String message);
	public void cacheLog(String tableName,Level level, String message);
	/**
	 * 生产日志
	 * @param level org.apache.logging.log4j.Level。INFO
	 * @param message 消息内容
	 * @param remark 提示信息 或关键字
	 */
	public void cacheLog(Level level, String message, String keyword);
	public void cacheLog(String tableName,Level level, String message, String keyword);
	
	public void cacheLog(Level level, String message, String keyword,String serviceName,String category);
	public void cacheLog(String tableName,Level level, String message, String keyword,String serviceName,String category);

	public void info(String message, Object... params);

	public void info(String message);

	public void info(String message, Throwable t);

	public void debug(String message, Object... params);

	public void debug(String message);

	public void debug(String message, Throwable t);

	public void warn(String message, Object... params);

	public void warn(String message);

	public void warn(String message, Throwable t);

	public void error(String message, Object... params);

	public void error(String message);

	public void error(String message, Throwable t);

	public void trace(String message, Object... params);

	public void trace(String message);

	public void trace(String message, Throwable t);

	

}

